package com.itheima.grammar.operator;

/**
 * @author Anomaly
 * @date 2022/11/28 19:13
 */

/**
 * 运算符
 */
public class OperatorDemo1 {
    public static void main(String[] args) {
        int a = 10;
        int b = 3;
        System.out.println("a + b = " + (a + b));
        System.out.println("a - b = " + (a - b));
        System.out.println("a * b = " + (a * b));
        //a / b = 3
        //a * 1.0 / b = 3.3333333333333335
        System.out.println("a / b = " + (a / b));
        System.out.println("a * 1.0 / b = " + (a * 1.0 / b));
        System.out.println("a % b = " + (a % b));
    }
}
